using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace LngTGUI
    {
    public partial class UserLoginForm: Form
        {
        public UserLoginForm()
            {
            InitializeComponent();
            }

        public static bool GetLoginDetails( ref string userName, ref string password )
            {
            UserLoginForm frm = new UserLoginForm();
            frm.usrTextBox.Text = userName;
            frm.pwdTextBox.Text = password;
            if( frm.ShowDialog() == DialogResult.OK )
                {
                userName = frm.usrTextBox.Text;
                password = frm.pwdTextBox.Text;
                return true;
                }

            return false;
            }
        }
    }